function init()
{
	// Using trace will send data to the server console
	trace("Hello from the Simple Extension Example!")
}
function destroy()
{
	trace("Bye bye!")
}
function handleRequest(cmd, params, user, fromRoom)
{
	var response = {}
	response.values = []
	
	if (cmd == "sayHola")
	{
		response._cmd = "sayHola"
		for (var i = 0; i < params.values.length; i++)
		{
			var n = params.values[i]
			response.values[i] = n * 10
		}
		response.values = "HolaaaAA"
		_server.sendResponse(response, -1, null, [user])
		
	}
	if (cmd == "double")
	{
		response._cmd = "double"
		for (var i = 0; i < params.values.length; i++)
		{
			var n = params.values[i]
			response.values[i] = n * 2
		}
		_server.sendResponse(response, -1, null, [user])
	}
	
}
function handleInternalEvent(evt)
{
	// Simply print the name of the event that was received
	trace("Event received: " + evt.name)	
}


